/**
 * Created by hu_it on 2016/11/22.
 */
define(['jquery','utils'], function ($,utils) {
    return {
        GetAllApps: function(){
            utils._ajax("GET","http://192.168.1.132:1315/api/apps",'content-container','content_template');
        },
        GetAllMenus: function(){
            utils._ajax("GET","http://192.168.1.132:1315/api/menus",'leftmenu-container','leftmenu_template');
        },
        GetTopMenus: function(){
            utils._ajax("GET","http://192.168.1.132:1315/api/menus",'topmenu-container','topmenu_template');
        },
        GetTypeApps: function(type){
            utils._ajax("GET","http://192.168.1.132:1315/api/apps?type=" + type ,'content-container','content_template');
        }
    }
})